{% extends "base.html" %}
{% block title %}{{group['name']}} details{% endblock %}
{% block content %}
    <article id="main" class="markdown-section">
	<h1>{{group['name'].title()}}</h1>
        <h3>Description</h3>
        {% if 'meta' in group and group['meta'] is not none %}
        <p>{{group['meta']|safe}}</p>
        {% endif %}

        <h3>Data</h3>
        <table id="table" class="table" style="display:table; table-layout:auto; width:100%">
          <thead>
            <tr>
                <th style="width:10%"> Size </th>
                <th style="width:15%"> Records </th>
                <th style="width:10%"> Indexed </th>
                <th style="width:65%"> Columns </th>
            </tr>
          </thead>
          <tbody>
                <tr>
                    <td><center> {{group['size']}} </center></td>
                    <td> {{group['records']}} </td>
                    <td> {{group['indexed']}} </td>
                    <td> {{group['columns']}} </td>
                </tr>
          </tbody>
        </table>


        {% if 'profile' in group and group['profile'][0] %}
        <table id="table" class="table" style="display:table; table-layout:auto; width:100%">
          <thead>
            <tr>
                <th> External Analysis </th>
            </tr>
          </thead>
          <tbody>
          {% for profile in group['profile'] %}
          <tr><td>{{profile}}</td></tr>
          {% endfor %}
          </tbody>
        </table>
        {% endif %}

        <table id="table" class="table" style="display:table; table-layout:auto; width:100%">
          <thead>
            <tr>
                <th>Urls</th>
            </tr>
          </thead>
          <tbody>
        {% for location in group['locations'] %}
            <tr><td> {{location['slug']}} </td>
            </tr>
        {% endfor %}
          </tbody>
        </table>

    </article>
{% endblock %}
